package com.gladlee.timeClient;

import com.gladlee.ACP.Atom;
import com.gladlee.ACP.AtomApp;
import com.gladlee.ACP.tool.AtomTool;
import com.gladlee.myACP.myAtomUser;
public class TimeClient extends AtomApp {
	public TimeClient(){
		atom=new Atom();
		user=new myAtomUser();
		atom.regUser(user);
		init();
		atom.work();
	}
	@Override
	public void run(){
		String localIP=AtomTool.getLocalIP();
		user.getIpSet().add("59.66.136.193");
		user.putStringData("ips", localIP);
//		System.out.println(localIP);
	}
	public void init(){
		user.setSendPeriod(10000);
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		AtomApp tc=new TimeClient();
		tc.run();
	}

}
